#import "MailTouchTableView.h"


@implementation MailTouchTableView

- (id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style{
	
	if (self = [super initWithFrame:frame style:style]) {
	}
	return self;
} 

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event

{
	
    UITouch *touch = [touches anyObject];
	
    startTouchPosition = [touch locationInView:self];
	
}



- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event

{
	
    UITouch *touch = [touches anyObject];
	
    CGPoint currentTouchPosition = [touch locationInView:self];
	
	
	
    // If the swipe tracks correctly.
	
    if (fabsf(startTouchPosition.x - currentTouchPosition.x) >= 12 &&
		
        fabsf(startTouchPosition.y - currentTouchPosition.y) <= 4)
		
    {
		
        // It appears to be a swipe.
		
        if (startTouchPosition.x < currentTouchPosition.x)
			
			;// [self myProcessRightSwipe:touches withEvent:event];
		
        else
			
			;// [self myProcessLeftSwipe:touches withEvent:event];
		
    }
	
    else
		
    {
		
        // Process a non-swipe event.
		
    }
	
}

- (void)dealloc {
	[super dealloc];	
}

@end
